home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Windows
/
WindowPile.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
616b
|
33 lines
// WindowPile.h
#ifndef WindowPile_h
#define WindowPile_h
#ifndef Rectangle_h
#include "Rectangle.h"
#endif
class WindowPile
{
private:
Rectangle pile;
PointObject first;
PointObject stop;
PointObject offset;
bool finished;
public:
WindowPile( Rectangle available, PointObject bestSize );
bool Finished() const { return finished; }
bool Unfinished() const { return !finished; }
void operator++();
void operator++(int) { operator++(); }
const Rectangle& operator*() const { return pile; }
const Rectangle *operator->() const { return &pile; }
};
#endif